![]() |
PBUnmountVol |
||||
Header: | Files.h | Carbon status: | Supported | |
Unmounts a volume.
OSErr PBUnmountVol ( ParmBlkPtr paramBlock );
A pointer to a basic File Manager parameter block.
A result code.
The relevant fields of the parameter block are:
On output, the result code of the function.
On input, a pointer to a pathname.
On input, a volume reference number, a working directory reference number, or 0 for the default volume..
The PBUnmountVol function unmounts the specified volume. All user files on the volume must be closed. Then, PBUnmountVol calls PBFlushVolSync or PBFlushVolAsync to flush the volume and releases the memory used for the volume.
Unmounting a volume does not close working directories; to release the memory allocated to a working directory, call PBCloseWDSync or PBCloseWDAsync.
The PBUnmountVol function always executes synchronously.
Don’t unmount the startup volume. Doing so will cause a system crash.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)